# coding:utf-8
import unittest

from api.login import LoginAPI
from utils import common_assert, read_file_data, read_data_db
from parameterized import parameterized

class TestLoginAPI(unittest.TestCase):
    def setUp(self) -> None:
        self.login_api=LoginAPI()
    def tearDown(self) -> None:
        pass
    @parameterized.expand(read_file_data())
    def test_login(self,login_data,status_code,success,code,message):

        response=self.login_api.login(login_data)
        print(response.json())
        common_assert(self, response, status_code, success, code, message)